from rest_framework import serializers
from myapp.models import User
from practical_training.models import Cate, WorkOrder, Message


class UserSer(serializers.ModelSerializer):

	class Meta:
		model = User
		# fields = ('username','phone')
		fields = '__all__'


class CateSer(serializers.ModelSerializer):

	class Meta:
		model = Cate
		fields = '__all__'


class WorkOrderSer(serializers.ModelSerializer):

	class Meta:
		model = WorkOrder
		fields = '__all__'


class MessageSer(serializers.ModelSerializer):

	class Meta:
		model = Message
		fields = '__all__'


